package ejemplo;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Button;

public class CompositeInsidencias extends Composite {
	public Text textId;
	public Text textEstado;
	public Text textDescripcion;
	public Text textFecha;
	public Text textTipoIncidencia;
	public Text textActiva;
	public Text textPrioridad;

	/**
	 * Create the composite.
	 * @param parent
	 * @param style
	 */
	public CompositeInsidencias(Composite parent, int style) {
		super(parent, style);
		System.out.println("entro=============================");
		Label lblId = new Label(this, SWT.NONE);
		lblId.setBounds(140, 10, 13, 15);
		lblId.setText("Id:");
		
		Label lblTipo = new Label(this, SWT.NONE);
		lblTipo.setBounds(140, 176, 84, 15);
		lblTipo.setText("Tipo incidencia:");
		
		Label lblDniCliente = new Label(this, SWT.NONE);
		lblDniCliente.setBounds(140, 66, 67, 15);
		lblDniCliente.setText("DNI Cliente:");
		
		Label lblEstado = new Label(this, SWT.NONE);
		lblEstado.setBounds(140, 95, 39, 15);
		lblEstado.setText("Estado:");
		
		Label lblFecha = new Label(this, SWT.NONE);
		lblFecha.setBounds(140, 122, 43, 15);
		lblFecha.setText("Fecha:");
		
		Label lblDescripicin = new Label(this, SWT.NONE);
		lblDescripicin.setBounds(140, 149, 67, 15);
		lblDescripicin.setText("Descripici\u00F3n:");
		
		Label lblActiva = new Label(this, SWT.NONE);
		lblActiva.setBounds(140, 203, 43, 15);
		lblActiva.setText("Activa:");
		
		Label lblPrioridad = new Label(this, SWT.NONE);
		lblPrioridad.setBounds(140, 230, 51, 15);
		lblPrioridad.setText("Prioridad:");
		
		textId = new Text(this, SWT.BORDER);
		textId.setBounds(169, 7, 55, 21);
		
		textEstado = new Text(this, SWT.BORDER);
		textEstado.setBounds(185, 92, 132, 21);
		
		textDescripcion = new Text(this, SWT.BORDER);
		textDescripcion.setBounds(214, 146, 103, 21);
		
		textFecha = new Text(this, SWT.BORDER);
		textFecha.setBounds(185, 119, 132, 21);
		
		Label lblTipo_1 = new Label(this, SWT.NONE);
		lblTipo_1.setBounds(140, 37, 27, 15);
		lblTipo_1.setText("Tipo:");
		
		Combo comboTipo = new Combo(this, SWT.NONE);
		comboTipo.setBounds(169, 34, 148, 23);
		
		Combo comboDni = new Combo(this, SWT.NONE);
		comboDni.setBounds(208, 63, 109, 23);
		
		textTipoIncidencia = new Text(this, SWT.BORDER);
		textTipoIncidencia.setBounds(230, 173, 87, 21);
		
		textActiva = new Text(this, SWT.BORDER);
		textActiva.setBounds(184, 200, 133, 21);
		
		textPrioridad = new Text(this, SWT.BORDER);
		textPrioridad.setBounds(197, 227, 120, 21);
		
		Button btnRegistrar = new Button(this, SWT.NONE);
		btnRegistrar.setBounds(233, 265, 84, 25);
		btnRegistrar.setText("Registrar");
		
		Button btnCancelar = new Button(this, SWT.NONE);
		btnCancelar.setBounds(140, 265, 75, 25);
		btnCancelar.setText("Cancelar");

	}

	@Override
	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}
}
